<?php

class Default_BlogController extends Cff_Controller_Action
{
	public function preDispatch()
	{
		$this->domain = 'http://' . $_SERVER['SERVER_NAME'];
	}
	
	public function indexAction()
	{
		
		echo $this->view->render("blog.phtml"); // 视图文件为完整网页 不使用layout
	}
	
	// 
	public function addAction()
	{
		
		echo Zend_Json::encode($json);	
	}
	

}